package com.ontheroad.scene.service;

import java.util.HashMap;

import org.springframework.remoting.service.annotation.RemoteService;

import cn.modoumama.service.base.BaseService;

import com.ontheroad.scene.model.SceneEntity;

/**
 * 场景模块业务
 * 
 */
@RemoteService
public interface SceneService extends BaseService<SceneEntity, Integer> {

	/**
	 * 添加场景信息
	 * @param isSub
	 * @param channel
	 * @param mac
	 * @param sceneEntity
	 * @return
	 * @throws Exception
	 */
	HashMap<String, Object> insertScene(Boolean isSub,int channel,String mac,SceneEntity sceneEntity)
			throws Exception;

	/**
	 * 修改场景信息
	 * @param isSub
	 * @param channel
	 * @param mac
	 * @param sceneEntity
	 * @return
	 * @throws Exception
	 */
	HashMap<String, Object> modifyScene(Boolean isSub,int channel,String mac,SceneEntity sceneEntity)
			throws Exception;
	
	/**
	 * 删除场景信息
	 * @param isSub
	 * @param channel
	 * @param mac
	 * @param sceneEntity
	 * @return
	 * @throws Exception
	 */
	HashMap<String, Object> deleteScene(Boolean isSub,int channel,String mac,SceneEntity sceneEntity)
			throws Exception;
	
	/**
	 * 获取场景列表
	 * @param isSub
	 * @param channel
	 * @param mac
	 * @return
	 * @throws Exception
	 */
	HashMap<String, Object> findScenes(Boolean isSub,int channel,String mac)
			throws Exception;
	
	/**
	 * 获取场景信息
	 * @param sceneId
	 * @return
	 * @throws Exception
	 */
	HashMap<String, Object> findScenesInfo(int sceneId) throws Exception;

}
